Skip to content

Update speech model options to universal-3-pro and universal-2#83

Merged
alexkroman merged 6 commits into
mainfrom
claude/gracious-einstein-smcnyo
Jun 12, 2026
Merged

Update speech model options to universal-3-pro and universal-2#83
alexkroman merged 6 commits into
mainfrom
claude/gracious-einstein-smcnyo

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Summary

Updates the eval command to use the current-generation speech models (universal-3-pro and universal-2) instead of the legacy model enum, aligning with the SDK's newer speech_models list parameter.

Key Changes

  • Created EvalSpeechModel enum with universal-3-pro and universal-2 options to replace the legacy aai.SpeechModel enum
  • Updated the --speech-model option to use the new enum and validate against only current-generation models
  • Added validation to reject legacy model names (best, nano, slam-1, universal) with a usage error
  • Changed transcription config to use speech_models=[model.value] (list parameter) instead of speech_model= (legacy enum parameter)
  • Updated CLI help text and examples to reference universal-3-pro instead of universal
  • Added test coverage for both new models and legacy model rejection
  • Removed unused assemblyai as aai import from test file

Implementation Details

  • The speech_models parameter is only set when a model is explicitly provided; it remains None if omitted (preserving SDK defaults)
  • Snapshot tests were regenerated to reflect the updated help text and example command
  • Tests now parametrize over the two supported models to ensure both work correctly

https://claude.ai/code/session_01Ra3Q7AeGdx6uFxTtc7dL1K

claude added 2 commits June 11, 2026 23:35
The SDK's SpeechModel enum stops at the legacy generation (best, nano,
slam-1, universal); the current models (universal-3-pro, universal-2)
are requested through its newer speech_models list parameter. Replace
the option's type with a CLI-level enum covering the union and route
each choice through the SDK parameter that accepts it.

https://claude.ai/code/session_01Ra3Q7AeGdx6uFxTtc7dL1K
Only the current generation (universal-3-pro, universal-2) remains, so
every choice rides the SDK's speech_models list parameter and the
legacy-routing helper goes away.

https://claude.ai/code/session_01Ra3Q7AeGdx6uFxTtc7dL1K
@alexkroman
alexkroman enabled auto-merge (squash) June 11, 2026 23:41
claude and others added 4 commits June 11, 2026 23:46
CI forces color on (Rich under GITHUB_ACTIONS), interleaving style
codes mid-message, so the literal substring check failed there while
passing locally. Strip SGR codes first, matching test_help_rendering.

https://claude.ai/code/session_01Ra3Q7AeGdx6uFxTtc7dL1K
Swap the dataset suggestions in the docstring and examples for the ASR
suite used by tiny-audio (librispeech, tedlium, earnings22, spgispeech,
ami, gigaspeech, peoples_speech, common_voice_17_0, voxpopuli,
switchboard, expresso, LoquaciousSet) plus talkbank/callhome for DER,
with the --subset/--split/--audio-column flags each needs.

https://claude.ai/code/session_01Ra3Q7AeGdx6uFxTtc7dL1K
@alexkroman
alexkroman merged commit 69ea79e into main Jun 12, 2026
8 checks passed
@alexkroman
alexkroman deleted the claude/gracious-einstein-smcnyo branch June 12, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants